import { createRouter, createWebHistory } from 'vue-router'
// 导入页面组件
import TobedoneList from '../views/tobedone/TobedoneList.vue'
import ReportKpiList from "../views/report_kpi/ReportKpiList.vue";
import ApprovalKpiList from "../views/approval_kpi/ApprovalKpiList.vue";
import KpiTaskStatusList from "../views/kpi_taskstatus/KpiTaskStatusList.vue";

// 路由规则配置
const routes = [
  {
    path: '/tobedone/tobedoneList',          // 路径     // 路由名称
    component: TobedoneList     // 对应的组件
  },
  {
    path: '/report_kpi/reportKpiList',          // 路径     // 路由名称
    component: ReportKpiList
  },
  {
    path: '/approval_kpi/approvalKpiList',          // 路径     // 路由名称
    component: ApprovalKpiList
  },{
    path: '/kpi_taskstatus/KpiTaskStatusList',          // 路径     // 路由名称
    component: KpiTaskStatusList
  }
]

// 创建路由实例
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),  // 使用 HTML5 history 模式
  routes  // 导入路由规则
})

export default router
